package cn.tedu.submarine;

import javax.swing.*;

public class NuclearBomb extends SeaObject{

    public NuclearBomb(int x,int y){
        super(14,18,x,y,2);
    }
    @Override
    public void move() {
        y-=speed;
    }

    @Override
    public ImageIcon getImage() {
        return Images.nuclearb;
    }

    @Override
    public boolean isOutOfBounds() {
        return y<-height;
    }
}
